// pages/fs-coupon-ad/index.js
//const app = getApp();
Page({

    /**
     * 页面的初始数据
     */
    data: {
        show: true,
        haveNavBar: false,
        topHeight: 50,
        banner: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=daf4c890632f9b52bab509f438cffd66&filekey=30340201010420301e02016d040253480410daf4c890632f9b52bab509f438cffd660203010a41040d00000004627466730000000131&hy=SH&storeid=32303139303930333130343332313030303532343565313336666664393331343630333230613030303030303664&bizid=1023",
        pageCouponList: [
            {
                mina_name: "浈江区味稻工场文氏餐饮店",
                merchant_name: "浈江区味稻工场文氏餐饮店",
                merchant_logo: "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5DuvoOBRMInDWNTic6NpnroicicwLup6FrSMRGwHvyDAaiaQ/0",
                stock_name: "",
                coupon_amount: 50,
                transaction_minimum: 100,
                status: "领取",
                COUPON_STATUS: {
                    normal: "领取"
                },
                send_coupon_params: [
                    {
                        "stock_id": "98065001",
                        "out_request_no": "89560002019101000121"
                    },
                    {
                        "stock_id": "98065001",
                        "out_request_no": "89560002019101000122"
                    }],
                sign: "9A0A8659F005D6984697E2CA0A9CF3B79A0A8659F005D6984697E2CA0A9CF3B7",//签名
                send_coupon_merchant: 10016226 //发券商户号
            },
            {
                mina_name: "遵义老火锅",
                merchant_name: "遵义老火锅",
                merchant_logo: "http://wx.qlogo.cn/mmhead/Q3auHgzwzM4RVKiaw7uYzZuMUqg3J4XA6KB0VkSPTmvbFubbI1yDwgQ/0",
                stock_name: "",
                coupon_amount: 58,
                transaction_minimum: 200,
                status: "立即使用",
                COUPON_STATUS: {
                    getted: "立即使用"
                },

            }
        ]
    },

    getcoupon: function (params) {
        // 插件返回信息在params.detail
        console.log('getcoupon', params)
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {
        console.log('555', this.data.pageCouponList);
    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})